<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('Service进程详细')" />
    <th:block th:include="include :: jsonview-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m-t" id="signupForm">
        <div class="form-group">
            <label class="col-sm-2 control-label">Service Name：</label>
            <div class="form-control-static" th:text="${service.serviceName} + ' / ' + ${@dict.getLabel('sys_service_status',service.serviceStatus)}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">进程：</label>
<!--            <div class="form-control-static" th:text="${operLog.requestMethod} + ' - ' + ${operLog.operUrl} + '  ' + '(' + '耗时' + ${operLog.costTime} + '毫秒)'">-->
            <div class="form-control-static" th:text="xxx">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">开始时间：</label>
            <div class="form-control-static" th:text="${service.startTime}">
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">结束时间：</label>
            <div class="form-control-static" th:text="${service.startTime}">
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态：</label>
            <div class="form-control-static" th:class="${service.serviceStatus == 0 ? 'label label-primary' : 'label label-danger'}" th:text="${service.serviceStatus == 0 ? '正常' : '异常'}">
            </div>
        </div>
        <div class="form-group" th:style="'display:' + ${service.serviceStatus == 0 ? 'none' : 'block'}">
            <label class="col-sm-2 control-label">异常信息：</label>
            <div class="form-control-static" th:text="xxx">
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: jsonview-js" />
<script th:inline="javascript">
    $(function() {
        <#--var operParam = [[${operLog.operParam}]];-->
        <#--if ($.common.isNotEmpty(operParam) && operParam.length < 2000) {-->
        <#--    $("#operParam").JSONView(operParam);-->
        <#--} else {-->
        <#--    $("#operParam").text(operParam);-->
        <#--}-->
        <#--var jsonResult = [[${operLog.jsonResult}]];-->
        <#--if ($.common.isNotEmpty(jsonResult) && jsonResult.length < 2000) {-->
        <#--    $("#jsonResult").JSONView(jsonResult);-->
        <#--} else {-->
        <#--    $("#jsonResult").text(jsonResult);-->
        <#--}-->
    });
</script>
</body>
</html>